#include <windows.h>
#include <d3dx9.h>

#include "SiuCommon.h"
#include "GameSceneBase.h"


class SiuRendererD3D9 : public IRenderer
{

public:
	SiuRendererD3D9(void);
	~SiuRendererD3D9(void);

	void SetUp() override;
	void Update() override;
	void CleanUp() override;

private:
	bool SetD3DDevice(int height, int width);
	bool SetWindows(int height, int width);
	bool SetUpCube();

	HWND m_hWnd;
	IDirect3DDevice9* m_pDevice;
	HINSTANCE m_hInst;

	const int Width = 640;
	const int Height = 480;

	IDirect3DVertexBuffer9* m_pVB = 0;
	IDirect3DIndexBuffer9*  m_pIB = 0;
	GameSceneBase* m_pGameScene;

};